<dd>
<p><a href="<?php echo $this->url(array('module'=>'student', 'controller'=>'course',
'action'=>'add'));?>"><u>Add new course</u></a></p>
</dd>


<?php
$this->dojo()->enable();

$this->accordionContainer()->captureStart(
 'student_course',
  array('duration' => 200),
  array('style' => 'width: 400px; height: 400px;')
  );


foreach($this->courses as $course){

//assessments

$assess = $this->url(array('module'=>'student', 'controller'=>'assessment',
    'action'=>'index', 'id'=>$course->id));

//grade scale
$scale = $this->url(array('module'=>'student', 'controller'=>'scale',
    'action'=>'index', 'id'=>$course->id));

$tracker = $this->url(array('module'=>'student', 'controller'=>'tracker',
    'action'=>'index', 'id'=>$course->id));

//edit course
$edit = $this->url(array('module'=>'student', 'controller'=>'course',
    'action'=>'edit', 'id'=>$course->id));

//delete course
$delete = $this->url(array('module'=>'student', 'controller'=>'course',
    'action'=>'delete', 'id'=>$course->id));


///echo $this->url(array('module'=>'student', 'controller'=>'course',
 //   'action'=>'view', 'id'=>$course->id));
//echo $this->escape($course->course_number);

$Content = 'Course Number:'.' '.$course['course_number'].'<br> Number of Credits:'.' '.$course['course_credits'].
     '<br> Desired Grade:'.' '.$course['desired_grade'].'<br> Semester:'.' '.$course['semester'].'<br> Year:'.' '.
    $course['year'].'<br><br>'."<a href = $assess><u>Assessments</u></a>".'<br>'."<a href = $scale><u>Grading Policy</u></a>".
    '<br>'."<a href = $tracker><u>Track Performance</u></a>".'<br>'."<a href = $edit><u>Edit</u></a>".'<br>'."<a href = $delete><u>Delete</u></a>";

echo $this->accordionPane($course['id'], $Content, array ('title' => $course['course_name']),array ("style" => 'background-color: #CCCCFF', 'align:"right"'),
  array ('design' => 'headline;'));
}
echo $this->accordionContainer()->captureEnd('student_course');

?><br><br>

